home *** CD-ROM | disk | FTP | other *** search
- -- card: 22407 from stack: in
- -- bmap block id: 0
- -- flags: 0000
- -- background id: 14765
- -- name:
- ----- HyperTalk script -----
- on plotFats sat,mono,poly,total
- global oldLevel
- get the userLevel
- put it into oldLevel
- set the userLevel to 5
- reset paint
- put 156 into x
- put 173 into y
- choose oval tool
- set centered to true
- drag from x,y to x+100,y+100
- set centered to false
- choose line tool
- drag from x,y to x, y-100
- put pi/2 into oldAngle
- repeat with n = 1 to 3
- get param(n)
- put it/total into it
- put it*2*pi into z
- put oldAngle - z into angle
- put oldAngle - z/2 into halfAngle
- put round(x + 100 * cos(angle)) into newx
- put round(y - 100 * sin(angle)) into newy
- choose line tool
- drag from x,y to newx,newy
- set the pattern to 2 + 10 * (n-1)
- if oldAngle - angle > .035 then
- choose bucket tool
- set the pattern to 2 + 10 * (n-1)
- put round(x + 95 * cos(halfAngle)) into newx
- put round(y - 95 * sin(halfAngle)) into newy
- click at newx,newy
- end if
- put angle into oldAngle
- end repeat
- choose browse tool
- repeat with n = 1 to 3
- get param(n)
- put it into data
- put formatNum(data) into field (n+1)
- end repeat
- end plotFats
-
-
-
- -- part 4 (field)
- -- low flags: 01
- -- high flags: 0001
- -- rect: left=279 top=214 right=245 bottom=366
- -- title width / last selected line: 0
- -- icon id / first selected line: 0 / 0
- -- text alignment: 0
- -- font id: 3
- -- text size: 12
- -- style flags: 0
- -- line height: 16
- -- part name:
-
-
- -- part 7 (button)
- -- low flags: 00
- -- high flags: 2000
- -- rect: left=462 top=307 right=334 bottom=494
- -- title width / last selected line: 0
- -- icon id / first selected line: 2162 / 2162
- -- text alignment: 1
- -- font id: 0
- -- text size: 12
- -- style flags: 0
- -- line height: 16
- -- part name: Return
- ----- HyperTalk script -----
- on mouseUp
- global oldLevel
- set the cursor to 4
- choose select tool
- doMenu "Select All"
- doMenu "Clear Picture"
- choose browse tool
- repeat with n = 2 to 5
- put empty into field n
- end repeat
- put empty into field "Date"
- put empty into field "Name"
- set the textsize of field "Name" to 12
- set the textsize of field "Date" to 12
- visual effect iris close slowly
- pop card
- set the userLevel to oldLevel
- end mouseUp
-
-
-
-
- -- part contents for background part 2
- ----- text -----
- Composition of Dietary Fatty Acids
-
- -- part contents for background part 9
- ----- text -----
- Saturated Fat
-
- Mono-Unsaturated
-
- Poly-Unsaturated
-
- -- part contents for background part 8
- ----- text -----
- Distribution of Fats (g)